<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page language="java" import="java.util.*" %>
<%@ taglib uri="http://www.ecside.org" prefix="ec"%>
<jsp:useBean id="pageBean" scope="request" class="com.agileai.hotweb.domain.PageBean"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>工作总结</title>
<%@include file="/jsp/inc/resource.inc.jsp"%>
<script language="javascript">
</script>
</head>
<body>
<form action="<%=pageBean.getHandlerURL()%>" name="form1" id="form1" method="post">
<%@include file="/jsp/inc/message.inc.jsp"%>
<div id="__ParamBar__" style="float: right;">&nbsp;</div>
<div id="__ToolBar__">
<table border="0" cellpadding="0" cellspacing="1">
<tr>
<%if ("SubmitPlan".equals(pageBean.inputValue("TASK_REVIEW_STATE"))){%>
	<td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="doSubmit({actionType:'confirmPlan'})"><input value="&nbsp;" type="button" class="confirmImgBtn" title="确认计划" />确认计划</td>
<%} %>
<%if ("SubmitSummary".equals(pageBean.inputValue("TASK_REVIEW_STATE"))){%>
	<td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="doSubmit({actionType:'confirmSummary'})"><input value="&nbsp;" type="button" class="confirmImgBtn" title="确认总结" />确认总结</td>
<%} %>
</tr>
</table>
<table class="detailTable" cellspacing="0" cellpadding="0">
<tr >
	<th width="100" colspan="3" nowrap>起止时间</th>
	<td><input id="TC_BEGIN" label="起始时间" name="TC_BEGIN" type="text" readonly="readonly" value="<%=pageBean.inputValue("TC_BEGIN")%>" size="10" class="text" />
		至
    	<input id="TC_END" label="结束时间" name="TC_END" type="text" readonly="readonly" value="<%=pageBean.inputValue("TC_END")%>" size="10" class="text" />
</td>
	<th width="100" nowrap>总结状态</th>
	<td><input id="TASK_REVIEW_STATE" label="总结状态" name="TASK_REVIEW_STATE" type="text" value="<%=pageBean.selectedText("TASK_REVIEW_STATE")%>" size="25" class="text" />
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="1">
<tr>
   <td colspan="2"><label>本周新增潜<%=pageBean.inputValue("PRO_NUM")%>条在客户</label></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="1">
<tr>
	<td colspan="2"><label>本周共计<%=pageBean.inputValue("TASK_REVIEW_VISITS_TOTAL")%>条拜访记录,陌生拜访记录<%=pageBean.inputValue("TASK_REVIEW_STRANGE")%>条</label></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="1">
<tr>
	<td colspan="2"><label>商机数<%=pageBean.inputValue("OPP_NUM")%>条</label></td>
</tr>
</table>
<%
List oppRecords = (List)pageBean.getAttribute("oppRecords");
pageBean.setRsList(oppRecords);
%>
<ec:table 
form="form1"
var="row"
items="pageBean.rsList" 
retrieveRowsCallback="process" 
useAjax="true" sortable="true"
doPreload="false" toolbarContent="status"
width="100%" rowsDisplayed="${ec_rd == null ?15:ec_rd}"
listWidth="100%" 
height="auto"
>
<ec:row styleClass="odd" >
	<ec:column width="50" style="text-align:center" property="_0" title="序号" value="${GLOBALROWCOUNT}" />
	<ec:column width="100" property="OPP_NAME" title="商机名称"   />
	<ec:column width="100" property="CUST_ID_NAME" title="客户名称"   />
	<ec:column width="100" property="CONT_ID_NAME" title="联系人名称"   />
	<ec:column width="100" property="OPP_CONCERN_PRODUCT" title="关注方案" />
	<ec:column width="100" property="CLUE_SALESMAN_NAME" title="跟进人员"   />
	<ec:column width="100" property="OPP_CREATER_NAME" title="创建人"   />
	<ec:column width="100" property="OPP_CREATE_TIME" title="创建时间"   />
</ec:row>
</ec:table>
<%
List orderRecords = (List)pageBean.getAttribute("orderRecords");
pageBean.setRsList(orderRecords);
%>
<table border="0" cellpadding="0" cellspacing="1">
<tr>
	<td colspan="2"><label>订单数<%=pageBean.inputValue("ORDER_NUM")%>条</label></td>
</tr>
</table>
<ec:table 
form="form1"
var="row"
items="pageBean.rsList" 
retrieveRowsCallback="process" 
useAjax="true" sortable="true"
doPreload="false" toolbarContent="status"
width="100%" rowsDisplayed="${ec_rd == null ?15:ec_rd}"
listWidth="100%" 
height="auto"
>
<ec:row styleClass="odd" >
	<ec:column width="50" style="text-align:center" property="_0" title="序号" value="${GLOBALROWCOUNT}" />
	<ec:column width="100" property="OPP_ID_NAME" title="商机名称"   />
    <ec:column width="100" property="ORDER_NAME" title="客户名称"   />
	<ec:column width="100" property="ORDER_CHIEF" title="负责人"   />
	<ec:column width="100" property="ORDER_COST" title="订单费用"   />
	<ec:column width="100" property="CLUE_SALESMAN_NAME" title="跟进人"   />
	<ec:column width="100" property="ORDER_CREATER_NAME" title="创建人"   />
	<ec:column width="100" property="ORDER_CREATE_TIME" title="创建时间" cell="date" format="yyyy-MM-dd" />
</ec:row>
</ec:table>
<table class="detailTable" cellspacing="0" cellpadding="0">
<tr>
	<th width="100" nowrap>总结说明</th>
	<td colspan="2">
		<textarea id="TASK_REVIEW_DESC" name="TASK_REVIEW_DESC" cols="100" rows="10" ><%=pageBean.inputValue("TASK_REVIEW_DESC")%></textarea>
	</td>
</tr>
</table>
</div>
<input type="hidden" name="actionType" id="actionType" value=""/>
<input type="hidden" name="TASK_REVIEW_ID" id="TASK_REVIEW_ID" value="<%=pageBean.inputValue("TASK_REVIEW_ID")%>"/>
</form>
</body>
</html>
<%@include file="/jsp/inc/scripts.inc.jsp"%>
